package com.gezi.admin.module.sys.role.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.util.List;

/**
 * @Author 格子软件
 * @createDate 2024/2/10 09:00
 * @contact 公众号：格子软件 微信：13716343106 邮箱：1424529270@qq.com
 */
@Data
public class SysRoleAddParamModel {
    @NotBlank(message = "角色名称不能为空")
    @Size(min = 1,max = 20,message = "角色名称长度不正确")
    @ApiModelProperty(value = "角色名称")
    private String name;

    @NotBlank(message = "权限标识不能为空")
    @Size(min = 1,max = 30,message = "权限标识长度不正确")
    @ApiModelProperty(value = "权限标识")
    private String permission;

    @NotNull(message = "角色顺序不能为空")
    @ApiModelProperty(value = "角色顺序")
    private Integer sort;

    @Size(min = 0,max = 200,message = "备注长度不正确")
    @ApiModelProperty(value = "备注")
    private String remark;

    @NotEmpty(message = "菜单权限不能为空")
    @ApiModelProperty(value = "菜单权限")
    private List<String> menuIdList;
}
